<script type="text/javascript">
logged();
function agree_remail(answer){
	if(answer=='yes')
	{
		var url= root+'users/agree_remail'
		$.post(url,{device:'true'},function(data){},'json');
	}
	show_popup_user('register_success');
}
</script>
<div class="popup_agree_remail png">
	<a href="javascript:void(0)" title="Đóng" class="close_popup" onclick="return hide_popup();"></a>
	<div class="p_content_popup">
		<div class="popup_tt"><img src="<?=PATH_URL.'static/images/'.$folder?>popup/text/dang_ky_tai_khoan.png" alt="" align="center" /></div>
		<div class="popup_ct">
			<p class="p1">Tôi đồng ý nhận email thông báo của chương trình</p>
			<div class="button">
				<span onclick="return agree_remail('yes')"><img src="<?=PATH_URL.'static/images/'.$folder?>popup/button/toi_dong_y.png" alt="" /></span>
				<span onclick="return agree_remail('')"><img src="<?=PATH_URL.'static/images/'.$folder?>popup/button/bo_qua.png" alt="" /></span>
			</div>
		</div>
	</div>
</div>